import Vue from 'vue'
import Router from 'vue-router'

import shouye from '../components/ShowYe/ShowYe'
import tuijian from '../components/WangBody/WangBodytuijian/WangBodytuijian'
import baby from '../components/WangBody/WangBodybaby/WangBodybaby'
import food from '../components/WangBody/WangBodyfood/WangBodyfood'
import zeidianji from '../components/WangBody/WangBodyzeidianji/WangBodyzeidianji'
import person from '../components/MyCenter/gerenzhongxin.vue'
import kefuyufankui from '../components/MyCenter/kefuyufankui.vue'
import qbdd from '../components/MyCenter/qbdd.vue'
import quanbudingdan_f from '../components/MyCenter/quanbudingdan_f.vue'
import quanbudingdan_t from  '../components/MyCenter/quanbudingdan_t.vue'
import daifahuo from '../components/MyCenter/daifahuo.vue'
import sousuo from '../components/WangSousuo/WangSousuo'
import duanhuowang from '../components/DDduanhuo/DDduan.vue'
import daizhifu from '../components/MyCenter/daizhifu.vue'
import daishouhuo from '../components/MyCenter/daishouhuo.vue'
import jiaoyiwancheng from '../components/MyCenter/jiaoyiwancheng.vue'
import guanzhugongzhonghao from '../components/MyCenter/guanzhugongzhonghao.vue'
import shezhi from '../components/MyCenter/shezhi.vue'
import duanhuo from '../components/DDduanhuo/DDduan'
import shop from '../components/DDshop/DDshop'
import message from '../components/WangBody/WangMessage/WangMessage'
import xinpin from '../components/WangBody/WangXinpin/WangXinpin'
import mustlist from '../components/WangBody/WangBodyzeidianji/WangMustlist/WangMustlist'
import hot from '../components/WangBody/WangBodytuijian/WangHot/WangHot'

import shimingrenzheng_f from '../components/MyCenter/shimingrenzheng_f'
import shimingrenzheng_t from '../components/MyCenter/shimingrenzheng_t'
import shimingrenzheng_t2 from '../components/MyCenter/shimingrenzheng_t2'
import fanjinpaihang from '../components/MyCenter/fanjinpaihang.vue'
import shouhuodizhi1 from '../components/MyCenter/shouhuodizhi1.vue'
import shouhuodizhi2 from '../components/MyCenter/shouhuodizhi2.vue'
import wodezhanghu from '../components/MyCenter/wodezhanghu.vue'
import wodeshendengzhi from '../components/MyCenter/wodeshendengzhi.vue'
import shendengzhimingxi from '../components/MyCenter/shendengzhimingxi.vue'
import wodexinde from '../components/MyCenter/wodexinde.vue'
import banner from '../components/WangBody/WangBodytuijian/WangBanner/WangBanner'
import naifen from '../components/WangBody/WangBodybaby/WangNaifen/WangNaifen'
import wangduanhuo from '../components/WangBody/WangBodytuijian/WangDuanhuo/WangDuanhuo'
import fenlei from '../components/WangFenlei/WangFenlei'
import xinde from '../components/DDxinde/DDxinde'
import quanbuxinde from '../components/DDxinde/DDquanbuxinde/DDquanbuxinde'
import shaitu from '../components/DDxinde/DDshaitu/DDshaitu'
import cart from '../components/DDcart/DDcart'
import dingdan from '../components/DDdingdan/DDdingdan'
import gouwuche from '../components/DDgouwuche/DDgouwuche'
import zhifu from '../components/DDzhifu/DDzhifu'
import biguan from '../components/WangBody/WangBodyzeidianji/WangBiguan/WangBiguan'
import weinintuijian from '../components/WangFenlei/WangWeinintuijian/WangWeinintuijian'
import mianbuhuli from '../components/WangFenlei/WangMianbuhuli/WangMianbuhuli'
import dizhuangcaizhuang from '../components/WangFenlei/WangDizhuangcaizhuang/WangDizhuangcaizhuang'
import xiuxianlingshi from '../components/WangFenlei/WangXiuxianlingshi/WangXiuxianlingshi'
import shentihuli from '../components/WangFenlei/WangShentihuli/WangShentihuli'
import meirongmeifa from '../components/WangFenlei/WangMeirongmeifa/WangMeirongmeifa'
import shenghuoyongpin from '../components/WangFenlei/WangShengguoyongpin/WangShenghuoyongpin'
import gerenhuli from '../components/WangFenlei/WangGerenhuli/WangGerenhuli'
import baojianyangsheng from '../components/WangFenlei/WangBaojianyangsheng/WangBaojianyangsheng'
import shishangchaopin from '../components/WangFenlei/WangShishangchaopin/WangShishangchaopin'
import muyingyongpin from '../components/WangFenlei/WangMuyingyongpin/WangMuyingyongpin'
import mianbu from '../components/WangFenlei/WangMianbu/WangMianbu'
import denglu from '../components/MyCenter/denglu.vue'
import zhuce from '../components/MyCenter/zhuce.vue'
import zhanghuguanli from '../components/MyCenter/zhanghuguanli.vue'
import xiugaimima from '../components/MyCenter/xiugaimima.vue'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/shouye'
    },
    {
      path: '/shouye',
      children: [
        {
          path: 'tuijian',
          component: tuijian,
          name: 'tuijian'
        },
        {
          path: 'baby',
          component: baby,
          name: 'baby'
        },
        {
          path: 'food',
          component: food,
          name: 'food'
        },
        {
          path: 'zeidianji',
          component: zeidianji,
          name: 'zeidianji'
        }
      ],
      component: shouye,
      name: 'shouye',
      redirect: '/shouye/tuijian'
    },
    {
      path: '/sousuo',
      component: sousuo,
    },
    {
      path: '/person',
      component: person,
      name: 'person'
    },
    {
      path: '/kefuyufankui',
      component: kefuyufankui,
      name: 'kefuyufankui'
    },
    {
      path: '/cart',
      component: cart,
      name: 'cart'
    },
    {
      path: '/gouwuche',
      component: gouwuche,
      name: 'gouwuche'
    },
    {
      path: '/dingdan',
      component: dingdan,
      name: dingdan
    },
    {
      path: '/zhifu',
      component: zhifu,
      name: 'zhifu'
    },
    {
      path: '/qbdd',
      component: qbdd,
      name: 'qbdd'
    },
    {
      path: '/quanbudingdan_f',
      component: quanbudingdan_f,
      name: 'quanbudingdan_f'
    },
    {
      path: '/quanbudingdan_t',
      component: quanbudingdan_t,
      name: 'quanbudingdan_t'
    },
    {
      path: '/duanhuo',
      component: duanhuo,
      name: 'duanhuo',
    },
    {
      path: '/message',
      component: message,
      name: 'message'
    },
    {
      path: '/shop',
      component: shop,
      name: 'shop'
    },
    {
      path: '/xinde',
      component :xinde,
      name : 'xinde',
      redirect: '/xinde/quanbuxinde',
      children: [
        {
          path: 'quanbuxinde',
          component: quanbuxinde,
          name: 'quanbuxinde'
        },
        {
          path: 'shaitu',
          component: shaitu,
          name: 'shaitu'
        }
      ]
    },
    {
      path: '/daifahuo',
      component: daifahuo,
      name: 'daifahuo'
    },
    {
      path: '/duanhuowang',
      component: duanhuowang,
      name: 'duanhuowang'
    },
    {
      path: '/xinpin',
      component: xinpin,
      name: 'xinpin'
    },
    {
      path: '/mustlist',
      component: mustlist,
      name: 'mustlist'
    },
    {
      path: '/daizhifu',
      component: daizhifu,
      name: 'daizhifu'
    },
    {
      path: '/daishouhuo',
      component: daishouhuo,
      name: 'daishouhuo'
    },
    {
      path: '/jiaoyiwancheng',
      component: jiaoyiwancheng,
      name: 'jiaoyiwancheng'
    },
    {
      path: '/guanzhugongzhonghao',
      component: guanzhugongzhonghao,
      name: 'guanzhugongzhonghao'
    },
    {
      path: '/shimingrenzheng_f',
      component: shimingrenzheng_f,
      name: 'shimingrenzheng_f'
    },
    {
      path: '/shimingrenzheng_t',
      component: shimingrenzheng_t,
      name: 'shimingrenzheng_t'
    },
    {
      path: '/shimingrenzheng_t2',
      component: shimingrenzheng_t2,
      name: 'shimingrenzheng_t2'
    },
    {
      path: '/fanjinpaihang',
      component: fanjinpaihang,
      name: 'fanjinpaihang'
    },
    {
      path: '/shouhuodizhi1',
      component: shouhuodizhi1,
      name: 'shouhuodizhi1'
    },
    {
      path: '/shouhuodizhi2',
      component: shouhuodizhi2,
      name: 'shouhuodizhi2'
    },
    {
      path: '/shezhi',
      component: shezhi,
      name: 'shezhi'
    },
    {
      path: '/wodezhanghu',
      component: wodezhanghu,
      name: 'wodezhanghu'
    },
    {
      path: '/hot',
      component: hot,
      name: 'hot'
    },
    {

      path: '/wodeshendengzhi',
      component: wodeshendengzhi,
      name: 'wodeshendengzhi'
    },
    {
      path: '/shendengzhimingxi',
      component: shendengzhimingxi,
      name: 'shendengzhimingxi'
    },
    {
      path: '/wodexinde',
      component: wodexinde,
      name: 'wodexinde'
    },
    {
      path: '/banner',
      component: banner,
      name: 'banner'
    },
    {
      path: '/naifen',
      component: naifen,
      name: 'naifen'
    },
    {
      path: '/wangduanhuo',
      component: wangduanhuo,
      name: 'wangduanhuo'
    },
    {
      path: '/fenlei',
      component: fenlei,
      name: 'fenlei',
      children: [
        {
          path: 'weinintuijian',
          component: weinintuijian,
          name: 'weinintuijian'
        },
        {
          path: 'mianbuhuli',
          component: mianbuhuli,
          name: 'mianbuhuli'
        },
        {
          path: 'dizhuangcaizhuang',
          component: dizhuangcaizhuang,
          name: 'dizhuangcaizhuang'
        },
        {
          path: 'xiuxianlingshi',
          component: xiuxianlingshi,
          name: 'xiuxianlingshi'
        },
        {
          path: 'shentihuli',
          component: shentihuli,
          name: 'shentihuli'
        },
        {
          path: 'meirongmeifa',
          component: meirongmeifa,
          name: 'meirongmeifa'
        },
        {
          path: 'shenghuoyongpin',
          component: shenghuoyongpin,
          name: 'shenghuoyongpin'
        },
        {
          path: 'gerenhuli',
          component: gerenhuli,
          name: 'gerenhuli'
        },
        {
          path: 'baojianyangsheng',
          component: baojianyangsheng,
          name: 'baojianyangsheng'
        },
        {
          path: 'shishangchaopin',
          component: shishangchaopin,
          name: 'shishangchaopin'
        },
        {
          path: 'muyingyongpin',
          component: muyingyongpin,
          name: 'muyingyongpin'
        }
      ],
      redirect: '/fenlei/weinintuijian'
    },
    {
      path: '/biguan',
      component: biguan,
      name: 'biguan'
    },
    {
      path: '/mianbu',
      component: mianbu,
      name: 'mianbu'
    },
    {
      path: '/denglu',
      component: denglu,
      name: 'denglu'
    },
    {
      path: '/zhuce',
      component: zhuce,
      name: 'zhuce'
    },
    {
      path: '/zhanghuguanli',
      component: zhanghuguanli,
      name: 'zhanghuguanli'
    },
    {
      path: '/xiugaimima',
      component: xiugaimima,
      name: 'xiugaimima'
    },
    {
      path: '/*',
      redirect: '/shouye'
    }
  ]
})
